ansx = 4 * (1 - 1/2) + 8 * 1/2
ansy = 3 * (1 - 1/2) + 6 * 1/2
print(ansx,ansy)